package com.huawei.appgallery.assistantdock.base.externalaction.openviewaction;

import android.app.Activity;
import android.content.Intent;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.cjl;
import o.Logger;
import o.dys.a;

public class BuoyLoginAction extends IOpenViewAction {
    public static final String ACTION_GAME_LOGIN = "com.huawei.gamebox.ACTION_GAME_LOGIN";
    private static final String ACTION_INIT_HWID = "com.huawei.gamebox.plugin.gameservice.GameLoginActivity.action.initHwid";
    private static final String GAME_LOGIN_ACTIVITY = "game_login_activity";
    private static final String TAG = "BuoyLoginAction";

    public BuoyLoginAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        dispatchOpenHwidLoginAction();
    }

    private void dispatchOpenHwidLoginAction() {
        Logger.ˏ(TAG, "start open hwid login.");
        Intent intent = new Intent(ACTION_INIT_HWID);
        intent.setClass((Activity) this.callback, cjl.ˋ(GAME_LOGIN_ACTIVITY));
        intent.putExtra("loginParam", this.intent.getStringExtra("loginParam"));
        this.callback.startActivity(intent);
    }
}
